package com.xxgc.demo.utils;

//座位工具类用来获取座位名称
public class SeatUtil {

    public static String getSeatName(Integer number,Integer seatType){
        String seatName = "";
        //补0
        if(number < 100){
            seatName = "0" +number;
        }
        if (number < 10){
            seatName = "0" +seatName;
        }
        //座位头
        switch (seatType){
            case 1:
                seatName = "A" + seatName;
                break;
            case 2:
                seatName = "B" + seatName;
                break;
            case 3:
                seatName = "C" + seatName;
                break;
        }
        return seatName;
    }
}
